/**
 * @param {string} s
 * @return {boolean}
 */
 var checkZeroOnes = function(s) {
    let x = 0, y = 0
    let i = 0
    while(i < s.length){
        let tempX = 0, tempY = 0
        while(s[i] === '1'){
            i++
            tempX++
        }
        while(s[i] === '0'){
            i++
            tempY++
        }
        x = Math.max(x,tempX)
        y = Math.max(y,tempY)
    }
    return x > y
};